﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Pixysoft.Framework.Logs
{
    public interface ILogCommand
    {
        /// <summary>
        /// 返回查询对象 如果格式错误，抛异常
        /// </summary>
        /// <returns></returns>
        ILogDocument ExecuteReader();

        /// <summary>
        /// 序列化对象
        /// </summary>
        /// <returns></returns>
        string SerializeReader();

        /// <summary>
        /// 等级
        /// </summary>
        LogLevel Level { get;set;}

        /// <summary>
        /// 模块名
        /// </summary>
        string Module { get;set;}

        /// <summary>
        /// 时间范围
        /// </summary>
        ILogCommandRangeConstraint Range { get;}

        /// <summary>
        /// 是否跨文本
        /// </summary>
        bool CrossFiles { get;set;}
    }
}
